package com.yanqu.road.entity.log.chefduel;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.List;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_l_chef_duel_phase1_stage",desc = "厨神争霸一阶段关卡结算",autoSave = true,uploadCk = true,dataUpload = true,eventName = "hotelone_levend")
public class LogChefDuelPhase1PassStage extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "关卡id",dataAttribute = "barrier_id")
    private int stageId;
    @FieldTypeAnnotation(desc = "当前餐馆评分",dataAttribute = "after_score")
    private long grade;
    @FieldTypeAnnotation(desc = "当前天赋map",dataAttribute = "level_map",saveJson = true)
    private List<Map<String,String>> skillMap;
    @FieldTypeAnnotation(desc = "结算类型 0手动失败 1手动成功 2一键成功",dataAttribute = "end_type")
    private int endType;
    @FieldTypeAnnotation(desc = "结算银币",dataAttribute = "end_score")
    private long endScore;
    @FieldTypeAnnotation(desc = "获得道具",dataAttribute = "item_get")
    private String reward;

    public LogChefDuelPhase1PassStage(int activityId, long userId, int stageId, long grade, List<Map<String,String>> skillMap, int endType, long endScore, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.stageId = stageId;
        this.grade = grade;
        this.skillMap = skillMap;
        this.endType = endType;
        this.endScore = endScore;
        this.reward = reward;
    }

    public long getEndScore() {
        return endScore;
    }

    public void setEndScore(long endScore) {
        this.endScore = endScore;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getStageId() {
        return stageId;
    }

    public void setStageId(int stageId) {
        this.stageId = stageId;
    }

    public long getGrade() {
        return grade;
    }

    public void setGrade(long grade) {
        this.grade = grade;
    }

    public List<Map<String, String>> getSkillMap() {
        return skillMap;
    }

    public void setSkillMap(List<Map<String, String>> skillMap) {
        this.skillMap = skillMap;
    }

    public int getEndType() {
        return endType;
    }

    public void setEndType(int endType) {
        this.endType = endType;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }
}
